n = int(input())
num = 0
for i in range(n):
    i = i + 1
    num = num + i*i

print(num)